package com.hgxd.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 协议表：从机通讯协议
 * </p>
 *
 * @author fsd
 * @since 2023-10-18
 */
@Getter
@Setter
@TableName("rb_agreements_products")
@ApiModel(value = "AgreementsProducts对象", description = "协议表：从机通讯协议")
public class AgreementsProducts implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("协议和产品id（以下统称产品）")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("产品名称")
    private String name;

    @ApiModelProperty("父级ID")
    private Integer parentId;

    @ApiModelProperty("父级名称")
    private String parentName;

    @ApiModelProperty("等级")
    private Integer level;

    @ApiModelProperty("备注")
    private String comment;

    @ApiModelProperty("创建时间")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime creatTime;

    @ApiModelProperty("修改时间")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;


}
